/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package homework.demo02;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author Administrator
 */
public class PersonTest {
    public static void main(String[]args){
       Person p1 = new Person("张三","0771-1234567","长岗大道777号"); 
       Person p2 = new Person("张四","0771-1234568","长岗大道777号"); 
       Person p3= new Person("张五","0771-1234569","长岗大道777号");
       
       List l =new ArrayList();
       l.add(p1);
       l.add(p2);
       l.add(p3);
       
       
       System.out.print("ArrayList 的元素是:");
       System.out.print(l);
 
    }

}
